package service

import (
	"context"
	__ "shop-microservices/basic/goods_proto"
	"shop-microservices/handler/dao"
)

func (s *Server) Carousel(_ context.Context, in *__.CarouselReq) (*__.CarouselResp, error) {
	carousel, err := dao.CarouselShow()
	if err != nil {
		return nil, err
	}

	return &__.CarouselResp{
		List: carousel,
	}, nil
}
